package demo2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestApp {
    public static void main(String[] args) {
        ApplicationContext ac=new ClassPathXmlApplicationContext("demo2/demo2.xml");
//        A a=ac.getBean(A.class);
//        B b=ac.getBean(B.class);
//        System.out.println(a.b);
//        System.out.println(ac.getBean(C.class));

    }
}
